// Copyright 2013 Google Inc. All Rights Reserved.
//
// Stub definitions for undefined functions.
//
// TODO(crbug.com/243244): Remove this file once bionic becomes ready.
//
#include <stdio.h>

void print_str(const char* s);

#define DEFINE_STUB(name)                       \
  int name() {                                  \
    print_str("*** " #name " is called ***\n"); \
    return 0;                                   \
  }

DEFINE_STUB(__bionic_clone)
DEFINE_STUB(__fstatfs64)
DEFINE_STUB(__getcpu)
DEFINE_STUB(__getpriority)
DEFINE_STUB(__openat)
DEFINE_STUB(__reboot)
DEFINE_STUB(__rt_sigtimedwait)
DEFINE_STUB(__sched_getaffinity)
DEFINE_STUB(__setresuid)
DEFINE_STUB(__setreuid)
DEFINE_STUB(__setuid)
DEFINE_STUB(__statfs64)
DEFINE_STUB(__timer_create)
DEFINE_STUB(__timer_delete)
DEFINE_STUB(__timer_getoverrun)
DEFINE_STUB(__timer_gettime)
DEFINE_STUB(__timer_settime)
DEFINE_STUB(__wait4)
DEFINE_STUB(__waitid)
//DEFINE_STUB(getdents)
DEFINE_STUB(pread64)
DEFINE_STUB(pwrite64)

// Stub functions for tests (libcommon_test, libchromium_base_test,
// libpeppersyscalls_test, plugin_test, and mods_test), dalvikvm.

// DEFINE_STUB(__cxa_bad_typeid)
DEFINE_STUB(futimes)
DEFINE_STUB(mknod)
DEFINE_STUB(sync_merge)
DEFINE_STUB(sync_wait)
